x86/mem_sharing: Fix RANDCONFIG build
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Jan 2020 13:41:40 +0000 (13:41 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 8 Jan 2020 18:40:14 +0000 (18:40 +0000)
commit76f118d60f059acf135e490707a03caefd4cc00e
tree35cbb2dcf2afdecbc9871436427f2ece266d836d
parent00691c6c90b2fd28d7b7037baeb288f6801e6182
x86/mem_sharing: Fix RANDCONFIG build

Travis reports: https://travis-ci.org/andyhhp/xen/jobs/633751811

  mem_sharing.c:361:13: error: 'rmap_has_entries' defined but not used [-Werror=unused-function]
   static bool rmap_has_entries(const struct page_info *page)
               ^
  cc1: all warnings being treated as errors

This happens in a release build (disables MEM_SHARING_AUDIT) when
CONFIG_MEM_SHARING is enabled.

Expand both trivial helpers into their single callsite.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_sharing.c